package com.hzqy.service.hotel;

import com.hzqy.persistence.dao.hotel.HotelQdhDao;
import com.hzqy.web.vo.qdh.*;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class HotelQdhServiceBean{
	protected final Logger LOG = LoggerFactory.getLogger(getClass());
	@Resource
	private HotelQdhDao hotelQdhDao;

    public QdhHotelRelationVo selectQdhHotelRelationVo(QdhHotelRelationVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("f_hr_serverid",vo.getF_hr_serverid());
        return hotelQdhDao.selectQdhHotelRelationVo(map);
    }
    public List<CacheAmusementVo> selectCacheAmusementVoList(CacheAmusementVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("amusementtype",vo.getAmusementtype());
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheAmusementVoList(map);
    }
    public CacheAmusementVo selectCacheAmusementVo(CacheAmusementVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheAmusementVo(map);
    }

    public List<CacheCateringVo> selectCacheCateringVoList(CacheCateringVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheCateringVoList(map);
    }
    public CacheCateringVo selectCacheCateringVo(CacheCateringVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheCateringVo(map);
    }

    public List<CacheFacilitatesVo> selectCacheFacilitatesVoList(CacheFacilitatesVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("type",vo.getType());
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheFacilitatesVoList(map);
    }
//    public CacheFacilitatesVo selectCacheFacilitatesVo(CacheFacilitatesVo vo) {
//        Map<String,Object> map=new HashMap<String, Object>();
//        map.put("id",vo.getId());
//        return hotelQdhDao.selectCacheFacilitatesVo(map);
//    }

    public List<CacheGoodsVo> selectCacheGoodsVoList(CacheGoodsVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheGoodsVoList(map);
    }
    public CacheGoodsVo selectCacheGoodsVo(CacheGoodsVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheGoodsVo(map);
    }

    public List<CacheHotelVo> selectCacheHotelVoList(CacheHotelVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("level",vo.getLevel());
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheHotelVoList(map);
    }
    public CacheHotelVo selectCacheHotelVo(CacheHotelVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        map.put("chineseName",vo.getChineseName());
        return hotelQdhDao.selectCacheHotelVo(map);
    }

    public List<CacheScenicspotVo> selectCacheScenicspotVoList(CacheScenicspotVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheScenicspotVoList(map);
    }
    public CacheScenicspotVo selectCacheScenicspotVo(CacheScenicspotVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheScenicspotVo(map);
    }

    public List<CacheShoppingVo> selectCacheShoppingVoList(CacheShoppingVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheShoppingVoList(map);
    }
    public CacheShoppingVo selectCacheShoppingVo(CacheShoppingVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheShoppingVo(map);
    }

    public List<CacheSpecialdishesVo> selectCacheSpecialdishesVoList(CacheSpecialdishesVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheSpecialdishesVoList(map);
    }
    public CacheSpecialdishesVo selectCacheSpecialdishesVo(CacheSpecialdishesVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheSpecialdishesVo(map);
    }

    public List<CacheTourismprojectVo> selectCacheTourismprojectVoList(CacheTourismprojectVo vo,int pageNo,int pageSize) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("firstResult",pageNo);
        map.put("pageSize",pageSize);
        return hotelQdhDao.selectCacheTourismprojectVoList(map);
    }
    public CacheTourismprojectVo selectCacheTourismprojectVo(CacheTourismprojectVo vo) {
        Map<String,Object> map=new HashMap<String, Object>();
        map.put("id",vo.getId());
        return hotelQdhDao.selectCacheTourismprojectVo(map);
    }
}
